save_tt
{tinytable}
Save a tinytable object to a file
element_text
{GGPLOT2}
Customise text in GGPLOT2
rm
{base}
Remove objects
geom_point
{GGPLOT2}
Generates a scatter plot
dim
{base}
Get dimensions of a data frame
pwr.r.test
{pwr}
Power analysis for correlation tests
colnames
{base}
Retrieve column names of a data frame
filter
{dplyr}
Filter out rows of a data frame according to logical vector
element_line
{GGPLOT2}
Customise line appearance
cor.test
{stats}
Test for Association/Correlation Between Paired Samples
correlation_matrix
{corrtable}
Create a formatted correlation matrix of variables
vdem
{vdemdata}
V-Dem country-year dataset
labs
{GGPLOT2}
Customise labels in GGPLOT2
str
{utils}
Get the structure of an R object
data.frame
{base}
Create a data.frame from vectors
scale_x_continuous
{GGPLOT2}
Customise continuous x axis
datasummary
{modelsummary}
Create customizable summary-statistics tables
theme_classic
{GGPLOT2}
A minimalistic theme with no gridlines
quantile
{stats}
Obtain empirical quantiles of a vector
c
{base}
Combine values/vectors into a vector
after_stat
{GGPLOT2}
Control aesthetic evaluation. On the module used for displying percent
group_tt
{tinytable}
Grouping in tinytable
list
{base}
Create a list object
class
{base}
Retrieve class of an R object
read.csv
{utils}
Read a csv file to data frame. Specify stringsAsFactors = FALSE to keep all string columns as characters
sd
{stats}
Get standard deviation of a vector
geom_histogram
{GGPLOT2}
Generates a histogram
as.integer
{base}
Convert an object to integer values
factor
{base}
Create factor variables
round
{base}
Rounds numbers
scale_y_continuous
{GGPLOT2}
Customise continuous y axis
ggtitle
{GGPLOT2}
Generates a title for a ggplot graph
head
{utils}
Show first 5 rows of a data frame
write.csv
{utils}
write a csv file to a data frame
names
{base}
Get or set names of an object
is.na
{base}
Check if a value is NA/elements of vector are NA
sum
{base}
Get sum of numeric values or a vector
ylab
{GGPLOT2}
Label the y axis (ggplot)
complete.cases
{stats}
Find Complete Cases
mutate
{dplyr}
Create new variables
mean
{base}
Get mean of a vector
library
{base}
Load an R package
replace
{base}
Replace elements in a vector
save_plot
{cowplot}
Save a plot to a file
coord_flip
{GGPLOT2}
Flip the x and y axes of a graph
geom_jitter
{GGPLOT2}
Add randomly displaced points to reduce overplotting
summarise
{dplyr}
collapse the dataset to a summary statistic. Usually used with group_by()
select
{dplyr}
Select columns from a tibble/data frame
subset
{base}
Return subsets of vectors, matrices or data frames which meet conditions.
ggplot
{GGPLOT2}
Create a ggplot graph
with
{base}
evaluate expression in the context of a data frame
matrix
{base}
Creates a matrix from the given set of values.
geom_hline
{GGPLOT2}
Add a horizontal line in GGPLOT2
element_blank
{GGPLOT2}
This theme element draws nothing, and assigns no space
attach
{base}
Attach Set of R Objects to Search Path
table
{base}
Obtain frequency table of a variable/cross-tabulation of two variables
setwd
{base}
Set Working Directory
print
{base}
Print object to the console
confint
{stats}
Calculate confidence Intervals for Model Parameters
ls
{base}
Return a vector of character strings giving the names of the objects in the specified environment
which
{base}
return indexes of TRUE entries of a logical vector
chisq.test
{stats}
Chi-Squared test (e.g. for cross-tabulations)
recode
{dplyr}
Recode a variable
modelsummary
{modelsummary}
Creates regression and data tables
factor
{base}
Create a factor
cut
{base}
Convert Numeric to Factor
geom_bar
{GGPLOT2}
Generates a bar chart
ggsave
{GGPLOT2}
Save a ggplot to file
geom_smooth
{GGPLOT2}
Generates a smoothed conditional means curve / line
lm
{stats}
Fit linear models using least squares
as.character
{base}
Coerce a vector to character
read_excel
{readxl}
Read an Excel file
group_by
{dplyr}
Group tibble/data.frame by a factor variable. All further tidyverse operations are performed group-wise
theme
{GGPLOT2}
Customize ggplot themes
scale_color_discrete
{GGPLOT2}
Customise the discrete colour scale
prop.table
{base}
Transform frequency table into table of proportions
margin
{GGPLOT2}
Set margins around plot elements (used inside theme elements)
arrange
{dplyr}
Sort values of data frame according to a variable/combination of variables
theme_latex
{tinytable}
A theme for modelsummary/tinytable tables
plotPlane
{rockchalk}
Draw a 3-D regression plot for two predictors
order
{base}
Get indexes that will sort a vector
geom_vline
{GGPLOT2}
Draws a vertical line
xlab
{GGPLOT2}
Label the x axis (ggplot)
reorder
{stats}
Reorder Levels of Factor based on the values of a second variable, usually numeric.
read_csv
{readr}
Read CSV files
aes
{GGPLOT2}
Construct aesthetic mapping of a ggplot graph
predict
{stats}
Generate predicted values from model objects
summary
{base}
Obtain summary statistics or detailed regression output
as.numeric
{base}
Coerce a vector to numeric
The end!